const VIRTUAL_PATH = process.env.VUE_APP_VIRTUAL_PATH;
export default {
  path: `${VIRTUAL_PATH}/`,
  meta: {
    title: "校智联融合平台",
  },
  component: (resolve) => require(["@/views/home.vue"], resolve),
  children: [
   
    {
      path: `${VIRTUAL_PATH}/login`,
      meta: {
        title: "登录",
      },
      component: (resolve) => require(["@/views/login/index.vue"], resolve),
    },
    {
      path: `${VIRTUAL_PATH}/main`,
      name: "Main",
      meta: {
        title: "首页",
      },
      component: () => import("../views/main/main.vue"),
    },
    {
      path: `${VIRTUAL_PATH}/device/list`,
      meta: {
        title: "设备管理",
      },
      component: (resolve) =>
        require(["@/views/device/list/index.vue"], resolve),
    },
    {
      path: `${VIRTUAL_PATH}/device/group`,
      meta: {
        title: "权限组设备",
      },
      component: (resolve) =>
        require(["@/views/group/device/index.vue"], resolve),
    },
    {
      path: `${VIRTUAL_PATH}/device/passrecord`,
      meta: {
        title: "通行记录",
      },
      component: (resolve) =>
        require(["@/views/record/pass/index.vue"], resolve),
    },
    {
      path: `${VIRTUAL_PATH}/device/developer`,
      meta: {
        title: "开发者服务",
      },
      component: (resolve) =>
        require(["@/views/device/developer/index.vue"], resolve),
    },
    {
      path: `${VIRTUAL_PATH}/basic/teacher`,
      meta: {
        title: "教师信息",
      },
      component: (resolve) =>
        require(["@/views/user/teacher/index.vue"], resolve),
    },
    {
      path: `${VIRTUAL_PATH}/basic/student`,
      meta: {
        title: "学生信息",
      },
      component: (resolve) =>
        require(["@/views/user/student/index.vue"], resolve),
    },
    {
      path: `${VIRTUAL_PATH}/group/list`,
      meta: {
        title: "权限分组",
      },
      component: (resolve) => require(["@/views/group/index.vue"], resolve),
    },
    {
      path: `${VIRTUAL_PATH}/group/user`,
      meta: {
        title: "人员分组",
      },
      component: (resolve) =>
        require(["@/views/user/group/index.vue"], resolve),
    },
    {
      path: `${VIRTUAL_PATH}/face/list`,
      meta: {
        title: "人脸库",
      },
      component: (resolve) => require(["@/views/user/face/index.vue"], resolve),
    },
  ],
};
